package com.suse.warmstill.service;

import com.suse.warmstill.common.model.ArticleCondition;
import com.suse.warmstill.common.model.CallResult;
import com.suse.warmstill.common.model.ListPageModel;
import com.suse.warmstill.vo.ArticlePostVo;
import com.suse.warmstill.vo.ArticleUVo;
import com.suse.warmstill.vo.ArticleVo;

import java.util.Map;

public interface ArticleService {
    /*
     * 查询所有文章
     * */
    ListPageModel<ArticleVo> lists(ArticleCondition condition);

    /*
     * 点赞
     * */
    Long praise(Long articleId, int status);

    Long addViewAccount(Long articleId);

    Long getView(Long articleId);

    ArticleVo articldetail(Long id);

    void publishArticle(ArticlePostVo article);

    int withDraw(Long articleId);

    void updateArticle(ArticleUVo article);

    CallResult deleteArticle(Integer articleId);
}
